﻿using System;
using Controller;

public partial class Modules_MostPopularPostsControl : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            BindData();
        }
    }

    public void BindData()
    {
        var postController = new PostController();
        repeaterPostPopular.DataSource = postController.GetListPostsPopularByView();
        repeaterPostPopular.DataBind();
    }
}